package com.song.dubbo.client.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

@Configuration
public class MvcConfig extends WebMvcConfigurationSupport {


    @Autowired
    private ParamInterceptor paramInterceptor ;

    @Override
    protected void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(paramInterceptor);
        super.addInterceptors(registry);
    }
}
